<template>
  <div class="nav-bar van-hairline--top">
    <ul class="nav-list">
      <router-link class="nav-list-item active" to="home" @click="clickTab">
        <van-icon name="wap-home-o" />
        <span>首页</span>
      </router-link>
      <!-- <router-link class="nav-list-item" to="cate">
        <van-icon name="qr" />
        <span>组件</span>
      </router-link>
      <router-link class="nav-list-item" to="list">
        <van-icon name="description" />
        <span>列表</span>
      </router-link> -->
      <router-link class="nav-list-item" to="my" @click="clickTab">
        <van-icon name="user-o" :badge="1" />
        <span>我的</span>
      </router-link>
    </ul>
  </div>
</template>

<script setup>
import { onMounted,ref } from 'vue'
import { useRoute } from 'vue-router'
import { appCurrentState } from '@/pinia/modules/app'
const route = useRoute()
const clickTab = ()=>{

}

onMounted(() => {

})
</script>

<style lang="scss" scoped>
.nav-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 14px 0;
  z-index: 1000;
  background: #fff;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  .nav-list {
    width: 100%;
    flex-direction: row;
    display: flex;
    padding: 0;
    .nav-list-item {
      display: flex;
      flex: 1;
      flex-direction: column;
      text-align: center;
      align-items: center;
      color: #666;
      &.router-link-active {
        color: #1989fa;
      }
      i {
        text-align: center;
        font-size: 44px;
      }
      span {
        font-size: 24px;
      }
      .van-icon-shopping-cart-o {
        margin: 0 auto;
        margin-bottom: 4px;
      }
    }
  }
}
</style>
